# lambda arguments : expression

# a 表示参数；
# a + 10  是计算表达式
x = lambda a : a + 10
print(x(5))

x = lambda  a, b : a * b
print(x(3,4))

x = lambda a, b, c : a + b + c
print(x(3,4,5))

x = lambda n : n * x(n-1)
# print(x(10))

def myfunc(n):
    return lambda a: a * n

mydubler = myfunc(3)
print(mydubler(11))

class MyClass:
    def __init__(self):
        x = 1000

    def __init__(self, x):
        self.x = 99122
p1 = MyClass(999)
print(p1.x)